<?php

/**
 * 后台首页控制器
 * @author:Cloud
 * @copyright:TcitCMS
 * @since:2014-05-12
 */

namespace Home\Controller;

class CaseController extends CommonController
{

    function _initialize()
    {
        $this->lm_id = 2;
        parent::_initialize();
    }

    function index()
    {
        parent::indexInitialize();
        $model = new \Common\Model\NewsModel();
        $data = $model->where('`lm_id`=' . $this->lm_id . ' and `deleted`=0')->select();
        $this->assign('data', $data);
        $this->display();
    }

    function detail()
    {
        $model = new \Common\Model\NewsModel();
        $this->display();
    }

}

?>